package com.hsgene.user.dto.login;

import com.hsgene.user.dto.user.GeneticTestingUserDto;

import java.io.Serializable;

/**
 * 微信code登录返回Dto
 *
 * @author wangbing
 * @version 1.0, 2018/10/16
 */
public class WeChatLoginResponseDto implements Serializable {

    private static final long serialVersionUID = 1384129601720819797L;
    /**
     * 是否需要绑定手机号
     */
    private Boolean needBinding = Boolean.TRUE;

    /**
     * 当needBinding = true时此字段才有意义
     * 表示当前微信用户为第一次使用小程序登录，需要绑定微信关联的电话号码
     */
    private String bindingKey;

    /**
     * 当needBinding = false时此字段有意义
     * 表示当前微信用户已授权登录过小程序，不需要再次绑定微信关联的手机号码
     */
    private GeneticTestingUserDto user;

    public Boolean getNeedBinding() {
        return needBinding;
    }

    public void setNeedBinding(Boolean needBinding) {
        this.needBinding = needBinding;
    }

    public String getBindingKey() {
        return bindingKey;
    }

    public void setBindingKey(String bindingKey) {
        this.bindingKey = bindingKey;
    }

    public GeneticTestingUserDto getUser() {
        return user;
    }

    public void setUser(GeneticTestingUserDto user) {
        this.user = user;
    }
}
